﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;

using Tong;
public partial class Test : System.Web.UI.Page
{
    public string str = "";



    /// <summary>
    /// 用於顯示資料
    /// </summary>
    public Tong.TongUse TextData = new Tong.TongUse();

    /// <summary>
    /// 系统安装绝对路径
    /// </summary>
    public string Abs_Path = TongUse.SysPath;
    /// <summary>
    /// 用户存放数据的临时表
    /// </summary>
    DataTable MyDt = new DataTable();


    /// <summary>
    /// 站点通用方法类
    /// </summary>
    public Tong.ThisSiteUse.SiteTong TextThisSite = new Tong.ThisSiteUse.SiteTong();

    /// <summary>
    /// 當前顯示的id
    /// </summary>
    string id = "1";
    //得到传入的栏目ID
    public String CloumnID = "1";

    /// <summary>
    /// 欄目目錄
    /// </summary>
    public string CX_Column_Directory = "";

    /// <summary>
    /// 顯示當前欄目的簡介
    /// </summary>
    public string str1 = "";
    /// <summary>
    /// 資料表
    /// </summary>
    DataTable NewDt = new DataTable();


    public string tab = "SysAnboZhCn";

    protected void Page_Load(object sender, EventArgs e)
    {
        //id1 公司簡辦
        //id3 首頁的文字
        str = TextData.SqlataSet("select * from [" + tab + "] where [" + tab + "_id]=1").Tables[0].Rows[0]["" + tab + "_Contont"].ToString();


        //機構新聞
        MyDt = TextThisSite.GetPointCloumnNews("7", 5, "0");//调用
        //ShowMac.DataSource = MyDt;
        //ShowMac.DataBind();

        //BindData();



    }

    /// <summary>
    ///邦定當前頁面的資料
    /// </summary>
    void BindData()
    {
        try
        {
            try
            {

                CloumnID = Request.QueryString["SendentID"].Trim();
            }
            catch
            {
                try
                {
                    CloumnID = Request.QueryString["CloumnID"].Trim();
                }
                catch { }
            }

            if (CloumnID == "1")
            {
                CloumnID = "9";
            }

            //關於我們子欄目管理
            tab = TextThisSite.SigeGetColumnTable(CloumnID);

            string id = Request["id"].ToString();

            str = TextData.SqlataSet("select * from [" + tab + "] where [" + tab + "_id]=" + id).Tables[0].Rows[0]["" + tab + "_Contont"].ToString();




        }
        catch
        {

            CloumnID = "1";//联系我们

        }




    }





}
